﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;

namespace ARR.Entities
{
    [DataContract]
    [Serializable]
    public class ArticleInventoryAndSales : EntityBase
    {
        [DataMember]
        ArticleInventoryAndSalesRow row;

        public ArticleInventoryAndSales(ArticleInventoryAndSalesRow row)
        {
            this.row = row;
        }

        public ArticleInventoryAndSales()
        {
            row = new ArticleInventoryAndSalesRow();
        }

        public override void Initialize()
        {
            row = new ArticleInventoryAndSalesRow();
        }

        [DataMember]
        public int Id
        {
            get { return row.Id; }
            set { row.Id = value; }
        }

        [DataMember]
        public string Code
        {
            get { return row.Code; }
            set { row.Code = value; }
        }

        [DataMember]
        public string Name
        {
            get { return row.Name; }
            set { row.Name = value; }
        }

        [DataMember]
        public string Category
        {
            get { return row.Category; }
            set { row.Category = value; }
        }

        [DataMember]
        public bool Delist
        {
            get { return row.Delist; }
            set { row.Delist = value; }
        }
        
        [DataMember]
        public bool IsDelisted
        {
            get { return row.IsDelisted; }
            set { row.IsDelisted = value; }
        }
        
        [DataMember]
        public bool IsNew
        {
            get { return row.IsNew; }
            set { row.IsNew = value; }
        }

        [DataMember]
        public bool IsDeletedRangeReview
        {
            get { return row.IsDeletedRangeReview; }
            set { row.IsDeletedRangeReview = value; }
        }

        [DataMember]
        public decimal InventoryCost
        {
            get { return row.InventoryCost; }
            set { row.InventoryCost = value; }
        }

    }
}
